#pragma once

class CWPModel;

class CWordMain : public WindowImplBase
{
public:
    CWordMain(void);
    ~CWordMain(void);

    LPCTSTR GetWindowClassName() const;	
    virtual void OnFinalMessage(HWND hWnd);
    virtual void Notify(TNotifyUI& msg);
    virtual void InitWindow();
    virtual void OnClick(TNotifyUI& msg);
    virtual LRESULT ResponseDefaultKeyEvent(WPARAM wParam);
    virtual CDuiString GetZIPFileName() const;
    virtual UILIB_RESOURCETYPE GetResourceType() const;
    virtual CDuiString GetSkinFile();
    virtual CDuiString GetSkinFolder();
    virtual CControlUI* CreateControl(LPCTSTR pstrClass);
    virtual LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
    virtual LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
    virtual LRESULT HandleCustomMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
    virtual LRESULT OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled);
    //virtual LPCTSTR GetResourceID() const;


    
    void OnPrepare(TNotifyUI& msg);
    void OnExit(TNotifyUI& msg);
    void OnTimer(TNotifyUI& msg);


protected:
    void OnPreviewWord();
    void OnReviewWord();

private:
    CButtonUI* m_pCloseBtn;
    CButtonUI* m_pHelpBtn;
    CButtonUI* m_pMinBtn;
    CButtonUI* m_pPreviewBtn;
    CWPModel* m_pWPModel;
};
